import request from '@/utils/request'

// 查询预警处置列表
export function listWarningDisposal(query) {
  return request({
    url: '/zhgd/warningDisposal/list',
    method: 'get',
    params: query
  })
}

// 查询预警处置详细
export function getWarningDisposal(id) {
  return request({
    url: '/zhgd/warningDisposal/' + id,
    method: 'get'
  })
}

// 新增预警处置
export function addWarningDisposal(data) {
  return request({
    url: '/zhgd/warningDisposal',
    method: 'post',
    data: data
  })
}

// 修改预警处置
export function updateWarningDisposal(data) {
  return request({
    url: '/zhgd/warningDisposal',
    method: 'put',
    data: data
  })
}

// 删除预警处置
export function delWarningDisposal(id) {
  return request({
    url: '/zhgd/warningDisposal/' + id,
    method: 'delete'
  })
}








// 查询预警信息列表
export function listTodoCount(query) {
  return request({
    url: '/zhgd/home/todoCount',
    method: 'get',
    // params: query
  })
}
